package com.imc.beans;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TbPublicnews entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_publicnews", catalog = "imcdbserver")
public class TbPublicnews implements java.io.Serializable {

	// Fields

	private Integer pbnId;
	private Integer uiId;
	private short ngpId;
	private String pbnTitle;
	private String pbnContent;
	private Date pbnReleasedate;
	private String pbnSubtitle;
	private short pbnSecrecylevel;
	private short pbnViewcount;
	private short pbnColor;
	private String pbnKeyworld;

	// Constructors

	/** default constructor */
	public TbPublicnews() {
	}

	/** full constructor */
	public TbPublicnews(Integer uiId, short ngpId, String pbnTitle,
			String pbnContent, Date pbnReleasedate, String pbnSubtitle,
			short pbnSecrecylevel, short pbnViewcount, short pbnColor,
			String pbnKeyworld) {
		this.uiId = uiId;
		this.ngpId = ngpId;
		this.pbnTitle = pbnTitle;
		this.pbnContent = pbnContent;
		this.pbnReleasedate = pbnReleasedate;
		this.pbnSubtitle = pbnSubtitle;
		this.pbnSecrecylevel = pbnSecrecylevel;
		this.pbnViewcount = pbnViewcount;
		this.pbnColor = pbnColor;
		this.pbnKeyworld = pbnKeyworld;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "pbn_id", unique = true, nullable = false)
	public Integer getPbnId() {
		return this.pbnId;
	}

	public void setPbnId(Integer pbnId) {
		this.pbnId = pbnId;
	}

	@Column(name = "ui_id")
	public Integer getUiId() {
		return this.uiId;
	}

	public void setUiId(Integer uiId) {
		this.uiId = uiId;
	}

	@Column(name = "ngp_id")
	public short getNgpId() {
		return this.ngpId;
	}

	public void setNgpId(short ngpId) {
		this.ngpId = ngpId;
	}

	@Column(name = "pbn_title", length = 200)
	public String getPbnTitle() {
		return this.pbnTitle;
	}

	public void setPbnTitle(String pbnTitle) {
		this.pbnTitle = pbnTitle;
	}

	@Column(name = "pbn_content", length = 16777215)
	public String getPbnContent() {
		return this.pbnContent;
	}

	public void setPbnContent(String pbnContent) {
		this.pbnContent = pbnContent;
	}

	@Column(name = "pbn_releasedate", length = 19)
	public Date getPbnReleasedate() {
		return this.pbnReleasedate;
	}

	public void setPbnReleasedate(Date pbnReleasedate) {
		this.pbnReleasedate = pbnReleasedate;
	}

	@Column(name = "pbn_subtitle", length = 200)
	public String getPbnSubtitle() {
		return this.pbnSubtitle;
	}

	public void setPbnSubtitle(String pbnSubtitle) {
		this.pbnSubtitle = pbnSubtitle;
	}

	@Column(name = "pbn_secrecylevel")
	public short getPbnSecrecylevel() {
		return this.pbnSecrecylevel;
	}

	public void setPbnSecrecylevel(short pbnSecrecylevel) {
		this.pbnSecrecylevel = pbnSecrecylevel;
	}

	@Column(name = "pbn_viewcount")
	public short getPbnViewcount() {
		return this.pbnViewcount;
	}

	public void setPbnViewcount(short pbnViewcount) {
		this.pbnViewcount = pbnViewcount;
	}

	@Column(name = "pbn_color")
	public short getPbnColor() {
		return this.pbnColor;
	}

	public void setPbnColor(short pbnColor) {
		this.pbnColor = pbnColor;
	}

	@Column(name = "pbn_keyworld", length = 100)
	public String getPbnKeyworld() {
		return this.pbnKeyworld;
	}

	public void setPbnKeyworld(String pbnKeyworld) {
		this.pbnKeyworld = pbnKeyworld;
	}

}